/**
 * @Author: 张兴
 * @Date: 2019/6/20
 * @Last Modified by:   张兴
 * @Last Modified time: 2019-09-12 15:45:00
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 查询车辆信息反馈单
export const selectCarDate = params => axios.get(`${SERVER.AUDI_CLAIM}/report/feedback/selectCarDate`, { params });
// 查询故障代码
export const selectSpoil = params => axios.get(`${SERVER.AUDI_CLAIM}/report/feedback/selectSpoil`, { params });
// 查询损坏件
export const selectDamagedParts = params => axios.get(`${SERVER.AUDI_CLAIM}/report/feedback/selectDamagedParts`, { params });
// 查询车辆信息报告  全部状态
export const selectReport = params => axios.get(`${SERVER.AUDI_CLAIM}/report/faultReport/selectReport`, { params });
// 查询车辆信息报告  未上传状态
export const selectReportWSC = params => axios.get(`${SERVER.AUDI_CLAIM}/report/faultReport/selectReportWSC`, { params });
// 查询车辆信息报告  已上传状态
export const selectReportYSC = params => axios.get(`${SERVER.AUDI_CLAIM}/report/faultReport/selectReportYSC`, { params });
// 查询引导数据
export const selectLeadData = params => axios.get(`${SERVER.AUDI_CLAIM}/report/feedback/selectLeadData`, { params });
// 主页删除
export const delectReport = params => axios.delete(`${SERVER.AUDI_CLAIM}/report/faultReport/delectReport`, { params });
// 抽屉页修改
export const updateReort = params => axios.put(`${SERVER.AUDI_CLAIM}/report/faultReport/updateReort`, params);
// 新增新保单
export const addReport = params => axios.post(`${SERVER.AUDI_CLAIM}/report/faultReport/addReport`, params);

// 上传车辆信息故障报告
export const upload = params =>
  axios.get(`${SERVER.AUDI_CLAIM}/report/faultReport/upload`, {
    params
  });

// 查询 损坏件
// export const selectSHJ = params =>
//   axios.get(`${SERVER.AUDI_CLAIM}/report/faultReport/selectSHJ`, {
//     params
//   });
export const selectSHJ = params =>
  axios.get(`${SERVER.DMSCLOUD_REPAIR}/repair/GetClaimsAudiData/damagedPartsQuery`, {
    params
  });

// 查询 引导数据
export const selectYDSJ = params =>
  axios.get(`${SERVER.AUDI_CLAIM}/report/faultReport/selectYDSJ`, {
    params
  });
